//
// Created by 高壮壮 on 2023/3/21.
//
/*#include <stdio.h>
#define MAX(a,b) (a)>(b)?(a):b
int main(){
    int a = 10;
    int b = 20;
    printf("%d\n",MAX(a,b));
    return 0;
}*/

//适用于计算比较小的数

#include<stdio.h>
int main(){
    int a =10;
    int b = 20;
    int c= 30;
//    printf("最大值为：%d\n",a > b ? a : b);
    printf("最大值为：%d\n",a > b ? (a > c ? a : c) : (b > c ? b : c));
    return 0;
}
